package com.gxa.service.impl;

import com.gxa.mapper.AttentionpMapper;
import com.gxa.pojo.Attentionp;
import com.gxa.service.AttentionpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 * User: bear
 * Date: 2020/09/25
 * Description
 * Version: V1.0
 */
@Service("attentionpService")
public class AttentionpServiceImpl implements AttentionpService {

    @Resource
    AttentionpMapper attentionpMapper;


    @Override
    public Integer add(Attentionp attentionp) {

        return attentionpMapper.add(attentionp);
    }

    @Override
    public List<Attentionp> findByPatientId(Integer patientId) {
        return attentionpMapper.findByPatientId(patientId);
    }
}
